<?php
	class nguoidungbs
	{
		public $MaNguoiDung = 0;
		public $TenNguoiDung="";
		public $MaPhongBan=0;
		public $MaChucVu=0;
		public $DienThoai="";
		public $Email="";
		public $TenDangNhap="";
		public $MatKhau="";
		public $Khoa=0;
		public $DiaChi="";
		public function Add()
		{
			$db = new nguoidungdb();
			return $db->Add($this->TenNguoiDung, $this->MaPhongBan, $this->MaChucVu, $this->DienThoai, $this->Email, $this->TenDangNhap, $this->MatKhau, $this->Khoa, $this->DiaChi);
		}
		
		public function Delete()
		{
			$db = new nguoidungdb();
			return $db->Delete($this->MaNguoiDung);
		}
		
		public function Update()
		{
			$db = new nguoidungdb();
			return $db->Update($this->MaNguoiDung, $this->TenNguoiDung, $this->DienThoai, $this->Email, $this->DiaChi);
		}
		public function GetList()
		{
			$db = new nguoidungdb();
			return $db->GetList($this->MaNguoiDung, $this->TenNguoiDung, $this->MaPhongBan, $this->MaChucVu, $this->DienThoai, $this->Email, $this->TenDangNhap, $this->MatKhau, $this->Khoa, $this->DiaChi);
		}
		
		public function ChangePass()
		{
			$db = new nguoidungdb();
			return $db->ChangePass($this->MaNguoiDung, $this->MatKhau);
		}
		
		public function Active()
		{
			$db = new nguoidungdb();
			return $db->Active($this->MaNguoiDung, $this->Khoa);
		}
		public function ChangeChucVu()
		{
			$db = new nguoidungdb();
			return $db->ChangeChucVu($this->MaNguoiDung, $this->MaChucVu);
		}
	}
?>